home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 7.12
/
2002-02_-_Disc_7.12.iso
/
Items.pcg
/
scripts
/
DefineButton2_282
/
BUTTONCONDACTION on(release).as
< prev
next >
Wrap
Text File
|
2001-12-06
|
779b
|
32 lines
on(release){
TheCurrentitem = 0;
TopItem = 1;
GameBox_y = 224;
searchstr = "";
arGamesDBMain = arGamesDBMaster;
arGamesDBIndex = arGamesIndexMaster;
arGamesDBSlice = arGamesDBMaster;
arGamesIndexSlice = arGamesIndexMaster;
var i = 1;
while(scrollMax >= i)
{
set("menugame" + i,arGamesDBSlice[i - 1]);
set("gamenumber" + i,i);
i += 1;
}
if(dbCount == currentGameCount)
{
setProperty("itemBar" + lastGameBox, _alpha, 10);
}
setProperty("itemBar1", _alpha, 20);
theCurrentGame = arGamesDBIndex[0];
numitems = arGamesDBSlice.length;
num_Games = numitems;
lastButton = 1;
topDB = 1;
dbCount = 1;
currentGameCount = 1;
lastGameBox = 1;
gotoAndPlay(13);
}